package com.kay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Description:
 * `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '⾃增主键',
 *   `email` varchar(64) NOT NULL COMMENT '邮箱地址',
 *   `token` varchar(255) NOT NULL COMMENT '令牌',
 * @Author: Kay
 * @CreateDate: 2021/9/18$ 12:16$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/9/18$ 12:16$
 */
@Data
@TableName("lagou_token")
public class Token {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String email;

    private String token;

    public Token(String email, String token) {
        this.email = email;
        this.token = token;
    }
}
